import request from '@/utils/request'
// 查询设备树根节点数据列表
export const getgenjiedianapi = params => request.get(`/core/vom/device-tree/root-node/list?treeModel=${params.treeModel}`)
// 获取树状图子节点信息
export const getzijidianapi = data => request.post('/core/vom/device-tree/child-node/list', data)
// 查询设备测点数据分组视图
export const ceshijiekouapi = params => request.get('/core/iot/data/device-item/data-view/list', { params })
// 获取设备的测点曲线数据
export const getquxianlist = (data, params) => request.get(`pio-microservice-biz/pio/iot-item/his/get?deviceId=${data.deviceId}`, { params })
// 根据单位编码获取该单位的总进线间隔
export const getzongjianxianapi = params => request.get('pio-microservice-biz/pio/common/bay-zjx/get', { params })

// 根据周期获取多个设备的多个测点数据
export const getduometerlistapi = params => request.get('pio-microservice-biz/pio/iot-item/his/bitch/list', { params })
// 能耗标签树
export const getenergytreelistapi=()=>request.get('/ecm-microservice-biz/ecm/device/tags/tree')